home *** CD-ROM | disk | FTP | other *** search
- Path: neurocog.lrdc.pitt.edu!hahn
- From: hahn@neurocog.lrdc.pitt.edu (Mark Hahn)
- Newsgroups: comp.lang.c++,comp.lang.c,comp.lang.misc,comp.programming,comp.unix.programmer,comp.unix.questions
- Subject: Re: help -- link 'getrusage' on HP
- Followup-To: comp.sys.hp.hpux
- Date: 10 Feb 1996 21:07:29 GMT
- Organization: Learning Research and Development Center at U. of Pittsburgh
- Message-ID: <4fj1eh$ltk@usenet.srv.cis.pitt.edu>
- References: <4finp6$f68@spool.cs.wisc.edu>
- NNTP-Posting-Host: neurocog.lrdc.pitt.edu
-
-
- fix your damn posting software!
-
-
- > I tried to link a program which call the procedure 'getrusage',
- > but it failed on HP. I am wondering which libray that I should include.
- > ( I didn't find the man page for this routine in my HP machine. maybe
- > yours can ).
-
- getrusage is an obsolete bsdism; hpux actually includes the syscall,
- but doesn't provide a library wrapper for it. this works:
-
- #ifdef __hpux
- #include <sys/syscall.h>
- #define getrusage(a, b) syscall(SYS_GETRUSAGE, a, b)
- #endif /* hpux */
-
- regards, mark hahn.
- --
- operator may differ from spokesperson. hahn@neurocog.lrdc.pitt.edu
- http://neurocog.lrdc.pitt.edu/~hahn/
-